package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.hhtb.model.UsersBankcards;
import com.stylefeng.guns.modular.hhtb.dao.UsersBankcardsMapper;
import com.stylefeng.guns.modular.hhtb.model.UsersBankcardsDto;
import com.stylefeng.guns.modular.hhtb.service.IUsersBankcardsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户的银行卡表 服务实现类
 * </p>
 *
 * @author slt
 * @since 2018-09-12
 */
@Service
public class UsersBankcardsServiceImpl extends ServiceImpl<UsersBankcardsMapper, UsersBankcards> implements IUsersBankcardsService {

    @Autowired
    private UsersBankcardsMapper usersBankcardsMapper;
    @Override
    public List<UsersBankcardsDto> selectAll(Page<UsersBankcardsDto> page, UsersBankcardsDto usersBankcardsDto) {
        List<UsersBankcardsDto> list = usersBankcardsMapper.selectAll(page,usersBankcardsDto);
        return list;
    }

    @Override
    public UsersBankcardsDto selectByBankId(Integer usersBankcardsId) {
        UsersBankcardsDto usersBankcardsDto = usersBankcardsMapper.selectByBankId(usersBankcardsId);
        return usersBankcardsDto;
    }
}
